package com.example.testlauncher;

import android.app.Application;
import android.content.Intent;
import android.content.IntentFilter;

public class TestApp extends Application {

	private ScreenOnBroadcastReceiver screenOnBroadcastReceiver;

	@Override
	public void onCreate() {
		super.onCreate();
		registerScreenOnReceiver();

	}

	private void registerScreenOnReceiver() {
		IntentFilter intentFilter = new IntentFilter(Intent.ACTION_SCREEN_ON);
		screenOnBroadcastReceiver = new ScreenOnBroadcastReceiver();
		registerReceiver(screenOnBroadcastReceiver, intentFilter);
	}

}
